package com.example.larou.service;

import cn.dev33.satoken.util.SaResult;
import com.example.larou.entity.Cart;
import com.example.larou.entity.Email;
import com.example.larou.entity.Item;

import java.util.List;

public interface ItemService {
    SaResult insertItem(Item item);
    SaResult deleteItem(int item_id);
    SaResult updateItem(Long id,Item item);
//    List<Item> getAllItem();
    SaResult addCart(Cart cart);
    SaResult deleteCartItem(int cart_id);

    SaResult addEmail(Email email);
}
